package com.ajx.blog.mapper;

import java.util.List;

import com.ajx.blog.entity.CourseInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import org.apache.ibatis.annotations.Param;

public interface CourseInfoMapper extends BaseMapper<CourseInfo> {

    /**
     * @param {String} timeStr 时间范围 thisMonth代表本月 all代表总收益
     * @return {List<CourseInfo>} 只有课程名和课程收益对应的list集合,将课程收益存在课程的单价字段
     * 
     * @description: 查询课程的收益
     */
    List<CourseInfo> courseEarningsMap(@Param("timeStr") String timeStr);

}
